#define _CRT_SECURE_NO_WARNINGS 1


#include<stdio.h>
#include<stdlib.h>


int cmp_char(void* e1, void* e2)
{
	return *(char*)e1 - *(char*)e2;
}

void test3()
{
	char arr[6] = { 'c','a','b','e','d' };
	int sz = sizeof(arr) / sizeof(arr[0]);
	qsort(arr, sz, sizeof(arr[0]), cmp_char);
	for (int i = 0; i < sz; i++)
	{
		printf("%c ", arr[i]);
	}
}

int main()
{
	test3();
	return 0;
}